package org.aeon.client.view.components.button;

import org.aeon.utils.SwingUtil;

import javax.swing.*;
import java.awt.*;

/**
 * @author: MissingAeon
 * @date: 2024/2/21 11:42
 * @description:
 */
public class OperationButton extends JButton {
    public OperationButton(String text, Color color) {
        init();
        this.setText(text);
        this.setBackground(color);
    }

    public OperationButton() {
        init();
    }

    private void init() {
        final Dimension dimension = new Dimension(80, 30);
        final Font font = new Font("黑体", Font.PLAIN, 14);

        // this.setContentAreaFilled(false);
        SwingUtil.setSize(this, dimension);
        this.setFont(font);

        this.setBorder(null);
        this.setForeground(Color.WHITE);
    }
    // public void setStyle(){
    //
    // }
}
